Skip to main content

ImageIsValid

Type

operator

Summary

The validity of an image

Syntax

<mImage> is valid

Description

Whether or not the image is valid

Parameters

NameTypeDescription

mImage

An expression which evaluates to an image.

Examples

// Create an image from empty data
variable tImage as Image
put image from data (the empty data) into tImage

// Before attempting to load the image it is assumed to be valid
variable tValid as Boolean
put tImage is valid into tValid

// tValid now contains True

// Get the width of the image, this will fail, returning 0 and marking the image as invalid
variable tWidth as Number
put the width of tImage into tWidth

// tWidth now contains 0

put tImage is valid into tValid

// tValid now contains False
Thank you for your feedback!

Was this page helpful?